<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type="text/javascript" src="Js/jquery-1.7.2.js"></script>
    <script language="JavaScript" src="../Js/Func.js"></script>
    <script language="javascript1.2">window.onload = tableFix;</script>
    <title>${detailSurvey}统计</title>
    <style type="text/css">

        td img{
            margin-left: -550px;
            margin-right: 0px;
        }
    </style>
</head>
<body>
<div class=nav style="text-align:left"><a href=admin_main.jsp>桌面</a><a href=SurveyStatis.jsp>问卷列表</a>»查看统计
    <hr>
</div>

<!--startprint-->
<table width="100%" align="center" cellpadding="0" cellspacing="0" id="Survey_title" class="table">
<tr>
    <th colspan="15">
        <div class="Survey_title">
                <span class="large">
                    ${detailSurvey}
                </span>
        </div>
    </th>
</tr>

<c:forEach items="${data}" var="datas">
    <tr>
        <th style="text-align: left">
            ${datas.questionName}
        </th>
        <th></th>
        <th></th>
    </tr>
    <tr>
        <td>${datas.optionNamea}</td>
        <td><img src="${pageContext.request.contextPath}/images/blue.gif" width="${datas.countA*30}" height="20">
        <td>${datas.countA}/${datas.totalCount}&nbsp;&nbsp;${datas.percountA}%</td>
    </tr>
    <tr>
        <td>${datas.optionNameb}</td>
        <td><img src="${pageContext.request.contextPath}/images/blue.gif" width="${datas.countB*30}" height="20">
        <td>${datas.countB}/${datas.totalCount}&nbsp;&nbsp;${datas.percountB}%</td>
    </tr>

    <c:if test="${empty datas.optionNamec}">
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </c:if>
    <c:if test="${not empty datas.optionNamec}">
        <tr>
            <td>${datas.optionNamec}</td>
            <td><img src="${pageContext.request.contextPath}/images/blue.gif" width="${datas.countC*30}"height="20">
            <td>${datas.countC}/${datas.totalCount}&nbsp;&nbsp;${datas.percountC}%</td>
        </tr>
    </c:if>

    <c:if test="${empty datas.optionNamed}">
        <td></td>
        <td></td>
        <td></td>
    </c:if>
    <c:if test="${not empty datas.optionNamed}">
        <tr>
            <td>${datas.optionNamed}</td>
            <td><img src="${pageContext.request.contextPath}/images/blue.gif" width="${datas.countD*30}"height="20">
            <td>${datas.countD}/${datas.totalCount}&nbsp;&nbsp;${datas.percountD}%</td>
        </tr>
    </c:if>
</c:forEach>


</table>

</body>
</html>


